package com.example.springbootmybatisplus.mj;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum Status {
    ONE(0,"男"),
    TWO(1,"女");
    @EnumValue
    //标记响应json值
    private final int code;
    //标记响应json值
    @JsonValue
    private final String name;

    Status(int code, String name) {
        this.code = code;
        this.name = name;
    }
}
